
import App from './App'
// import * as uni from '@dcloudio/uni-ui';
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
//设置pinia
import { createSSRApp } from 'vue'
import pinia from './store/index'
import './router/index'
import Tabbar from './pages/Tabbar/Tabbar.vue'
// import uView from 'uview-ui'



export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  // app.use(uView)
  // 全局注册Tabbar组件
  app.component('Tabbar', Tabbar)
  
  // 全局变量
  app.config.globalProperties.$themeColor = '#4290c3';

  
  return {
    app
  }
}
// #endif

